<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../ohter/js库/mock.js"></script>
    <script src="../../ohter/js库/vue.js"></script>
    <title>h5新增表单属性</title>
    <style>
        /* 
            required  表单项必填
            placeholder 提示文本
            autofocus 自动获取焦点
            autocomplete 是否记住以前输入的内容
            multiple 多文件上传
        */
        input::placeholder {
            color: green;
        }
    </style>
</head>

<body>
    <div id="root">
        <form action="#">
            <label for="username">用户名</label>
            <input type="text" id="username" required placeholder="请输入用户名"><br>
            <label for="password">密码</label>
            <input type="password" id="password" autofocus><br>
            <label for="email">邮箱</label>
            <input type="email" id="email" autocomplete="off"><br>
            <label for="pic">头像</label>
            <input type="file" multiple><br>
            <label for="ohter">其它</label>
            <input type="text" id="other" disabled><br>
            <input type="submit" value="提交"></input>
        </form>
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>